#include<iostream>
#include<math.h>
using namespace std;
int main(void){
	for(long long i = -5000;i <= 5000;i++){
		for(long long j = i;j <= 5000;j++){
			for(long long k = j;k <= 5000;k++){
				if( pow(i,3) + pow(j,3) + pow(k,3) == 87 ){
					cout << endl << i <<" " << j << " " << k << endl;
					return 0;
				}
			}		
		}
	}
}
